package com.x52im.rainbowchat.http.logic.dto;

import java.sql.Timestamp;
import java.util.Objects;

public class AlipayDepositDTO {
    private int id;
    private String alipayUserId;
    private int userUid;
    private String outTradeNo;
    private String tradeNo;
    private int totalAmount;
    private String msg;
    private String code;
    private String subject;
    private String productCode;
    private Timestamp createDate;
    private String syncResultStatus;
    private String syncMemo;
    private String syncSellerId;

    public String getSyncResultStatus() {
        return syncResultStatus;
    }

    public void setSyncResultStatus(String syncResultStatus) {
        this.syncResultStatus = syncResultStatus;
    }

    public String getSyncMemo() {
        return syncMemo;
    }

    public void setSyncMemo(String syncMemo) {
        this.syncMemo = syncMemo;
    }

    public String getSyncSellerId() {
        return syncSellerId;
    }

    public void setSyncSellerId(String syncSellerId) {
        this.syncSellerId = syncSellerId;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAlipayUserId() {
        return alipayUserId;
    }

    public void setAlipayUserId(String alipayUserId) {
        this.alipayUserId = alipayUserId;
    }

    public int getUserUid() {
        return userUid;
    }

    public void setUserUid(int userUid) {
        this.userUid = userUid;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public int getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(int totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AlipayDepositDTO that = (AlipayDepositDTO) o;
        return id == that.id &&
                userUid == that.userUid &&
                totalAmount == that.totalAmount &&
                Objects.equals(alipayUserId, that.alipayUserId) &&
                Objects.equals(outTradeNo, that.outTradeNo) &&
                Objects.equals(tradeNo, that.tradeNo) &&
                Objects.equals(msg, that.msg) &&
                Objects.equals(code, that.code) &&
                Objects.equals(createDate, that.createDate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, alipayUserId, userUid, outTradeNo, tradeNo, totalAmount, msg, code, createDate);
    }
}
